package com.bkgy.modular.tbdsjplancheckpdiC642.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.tbdsjplancheckpdiC642.service.PlanCheckPdi642Service;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

@RestController
@RequestMapping("/planCheckPdi642")
public class PlanCheckPdi642Controller {
    @Resource
    private PlanCheckPdi642Service planCheckPdi642Service;

    @PostMapping("/findDataByPage")
    public ResultData findDataByPage(@RequestBody JSONObject json){
        return planCheckPdi642Service.findDataByPage(json);
    }

    /**
     * 列表导出功能
     * @param jsonObject
     * @param response
     */
    @PostMapping("/exportXlsx")
    public void export(@RequestBody JSONObject jsonObject, HttpServletResponse response) {
        planCheckPdi642Service.export(jsonObject,response);
    }

    @PostMapping("/findLineDataByVolumeNo")
    public ResultData findLineDataByVolumeNo(@RequestBody JSONObject json){
        return planCheckPdi642Service.findLineDataByVolumeNo(json);
    }

}
